<tagLib name="mkrtags" />
<!--  功能操作区域  -->

<table width="100%" cellpadding="0" cellspacing="0" >
  <tr>
    <td width="60%">
	    <span><input type="button"  onclick="add()" class="button1" title="增加数据" value="增加数据" /> </span>
	    <span><input type="button"  onclick="edit()" class="button1" title="编辑数据" value="编辑数据" /> </span>
	    <span><input type="button"  onclick="view()" class="button1" title="查看详细数据" value="查看详细" /> </span>
	    <span><input type="button"  onclick="del()" class="button1" title="删除数据" value="删除数据" /> </span>
	    
		    <span>
			    <input type="button"  onclick="display('searchbox')" class="button1" title="搜索数据" value="搜索数据▼" />
			    <div class="searchbox" id="searchbox" style="display:none">
			        <table cellpadding="0" cellspacing="0">
			          <tr>
			            <td class="ewTableHeader">关键词:</td>
			            <td class="ewTableAltRow"><input id="searchkey" type="text"  name="searchkey"  value="{$searchkey}" /></td>
			          </tr>
			          <tr>
			          	<td class="ewTableHeader">条件:</td>
			            <td class="ewTableAltRow"><mkrtags:radio id="searchtype" name="searchtype"  outtable="Array" value="$searchtype" outfield="AND,OR" outkey="AND,OR" /></td>
			          </tr>
			          <tr>
			            <td colspan="2"  class="ewTableAltRow">
			            <input type="submit"   class="button1" value="搜索" />
			            <input type="button" name="delete" onclick="location.href='__URL__/index/'" class="button1" value="清空" />
			            </td>
			          </tr>
			        </table>
			    </div>
		    </span>
	    
		<span><input type="button"  onclick="location.reload();" class="button1" title="刷新数据" value="刷新数据" /> </span>
    </td>
  </tr>
</table>
<!-- 功能操作区域结束 -->
<!-- Myhtml 系统列表组件开始 -->
<table id="Friend_List" class="list">
  <tr class="row">
    <th width="8">
		<input type="checkbox" id="check" onclick="CheckAll('Friend_List')">
    </th>
    
    <th> <a class="titleth" href="javascript:AjaxSortBy('Friend','ajaxlist','uid','<php> echo getsorttype('uid');</php>','Friend_Grid')"  title="按照用户ID排序">用户ID
      <php> echo getsorttype('uid',1);</php>
      </a> </th>
    
    <th> <a class="titleth" href="javascript:AjaxSortBy('Friend','ajaxlist','fuid','<php> echo getsorttype('fuid');</php>','Friend_Grid')"  title="按照好友ID排序">好友ID
      <php> echo getsorttype('fuid',1);</php>
      </a> </th>
    
    <th> <a class="titleth" href="javascript:AjaxSortBy('Friend','ajaxlist','fusername','<php> echo getsorttype('fusername');</php>','Friend_Grid')"  title="按照好友名排序">好友名
      <php> echo getsorttype('fusername',1);</php>
      </a> </th>
    
    <th> <a class="titleth" href="javascript:AjaxSortBy('Friend','ajaxlist','status','<php> echo getsorttype('status');</php>','Friend_Grid')"  title="按照关系状态排序">关系状态
      <php> echo getsorttype('status',1);</php>
      </a> </th>
    
    <th> <a class="titleth" href="javascript:AjaxSortBy('Friend','ajaxlist','gid','<php> echo getsorttype('gid');</php>','Friend_Grid')"  title="按照好友组ID排序">好友组ID
      <php> echo getsorttype('gid',1);</php>
      </a> </th>
    
    <th> <a class="titleth" href="javascript:AjaxSortBy('Friend','ajaxlist','note','<php> echo getsorttype('note');</php>','Friend_Grid')"  title="按照好友描述排序">好友描述
      <php> echo getsorttype('note',1);</php>
      </a> </th>
    
    <th> <a class="titleth" href="javascript:AjaxSortBy('Friend','ajaxlist','num','<php> echo getsorttype('num');</php>','Friend_Grid')"  title="按照好友关系数排序">好友关系数
      <php> echo getsorttype('num',1);</php>
      </a> </th>
    
    <th> <a class="titleth" href="javascript:AjaxSortBy('Friend','ajaxlist','dateline','<php> echo getsorttype('dateline');</php>','Friend_Grid')"  title="按照加好友时间排序">加好友时间
      <php> echo getsorttype('dateline',1);</php>
      </a> </th>
    
    <th> <a class="titleth" href="javascript:AjaxSortBy('Friend','ajaxlist','mtime','<php> echo getsorttype('mtime');</php>','Friend_Grid')"  title="按照审批时间排序">审批时间
      <php> echo getsorttype('mtime',1);</php>
      </a> </th>
    
    <th >操作区域</th>
  </tr>
  <php> if(isset($list)): </php>
  <php> $i = 0; </php>
  <php> if( count($list)==0 ) echo "" </php>
  <php> foreach($list as $key=>$list): </php>
  <php> ++$i;</php>
  <php> $mod = (($i % 2 )==0)</php>
  <php> if(($key%2)==0){ $tablesclass="ewTableAltRow";} else { $tablesclass="ewTableRow";} </php>
  <tr class="{$tablesclass}" onmouseover="ew_mouseover(this);" onmouseout="ew_mouseout(this);" onclick="ew_click(this);"  >
    <td><input type="checkbox" name="key"	value="{$list.id}"></td>
    
    <td title="用户ID"> <mkrtags:text id="uid" name="uid"  value="$list['uid']"/> </td>
    
    <td title="好友ID"> <mkrtags:text id="fuid" name="fuid"  value="$list['fuid']"/> </td>
    
    <td title="好友名"> <mkrtags:text id="fusername" name="fusername"  value="$list['fusername']"/> </td>
    
    <td title="关系状态"> <mkrtags:text id="status" name="status"  value="$list['status']"/> </td>
    
    <td title="好友组ID"> <mkrtags:text id="gid" name="gid"  value="$list['gid']"/> </td>
    
    <td title="好友描述"> <mkrtags:text id="note" name="note"  value="$list['note']"/> </td>
    
    <td title="好友关系数"> <mkrtags:text id="num" name="num"  value="$list['num']"/> </td>
    
    <td title="加好友时间"> <mkrtags:text id="dateline" name="dateline"  value="$list['dateline']"/> </td>
    
    <td title="审批时间"> <mkrtags:text id="mtime" name="mtime"  value="$list['mtime']"/> </td>
    
    <td>
    	<a href="javascript:edit('{$list.id}')" title="编辑本信息">编辑</a>
     	<a href="javascript:del('{$list.id}')" title="删除本信息">删除</a>
     	<a href="javascript:view('{$list.id}')" title="查看详细信息">详细</a>
    </td>
  </tr>
  <php> endforeach; </php>
  <php> endif; </php>
</table>
<!--Myhtml系统列表组件结束 -->
<!--  分页显示区域 -->
<div class="page">
  <table width="100%">
    <tr>
      <td align="left"></td>
      <td align="right">{$page}</td>
    </tr>
  </table>
</div>
<!--  分页显示区域结束 -->
